package threaddemo4;

/**
 * Created by L.jp
 * Description:
 * User: 86189
 * Date: 2022-08-06
 * Time: 18:51
 */
//测试
public class Testdemo {
    public static void main(String[] args) {
        //可以查看Thread的构造方法，查看线程是怎么编号的
        //每一个线程有默认名字是Thread-数字(从0开始)
        ThreadName t1=new ThreadName("线程1");
        //t1.setName("线程1");
        t1.start();
        
        ThreadName t2=new ThreadName("线程2");
        //t2.setName("线程2");
        t2.start();
    }
    
}
